import * as rule from '@/utils/rule'
export const modalConfig = {
     title: '隐患记录',
     formItems: [
          {
               field: 'xlname',
               type: 'select',
               label: '线路名称 ',
               placeHolder: '请选择线路名称',
               disabled: false,
               rules: [rule.cannotBeEmpty('请选择线路名称')],
               options: [],
               visible: true,
               initValue: '',
          },
          {
               field: 'startlc',
               type: 'input',
               label: '开始里程',
               placeHolder: '请输入开始里程',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入开始里程')],
               visible: true,
               initValue: '',
          },
          {
               field: 'endlc',
               type: 'input',
               label: '结束里程',
               placeHolder: '请输入结束里程',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入结束里程')],
               visible: true,
               initValue: '',
          },
          {
               field: 'hb',
               type: 'select',
               label: '行别 ',
               placeHolder: '请选择行别',
               disabled: false,
               rules: [rule.cannotBeEmpty('请选择行别')],
               options: [
                    {
                         label: '上行',
                         value: '上行',
                    },
                    {
                         label: '下行',
                         value: '下行',
                    },
               ],
               visible: true,
               initValue: '',
          },
          {
               field: 'district',
               type: 'cascader',
               label: '行政区',
               placeHolder: '请输入行政区',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入会议主题')],
               props: {
                    checkStrictly: true,
                    label: 'Name',
                    value: 'Name',
                    children: 'SubDistricts',
               },
               visible: true,
               cascader: [],
               initValue: '',
          },
          {
               field: 'Posidis',
               type: 'input',
               label: '距离铁路距离',
               placeHolder: '请输入距离铁路距离',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入距离铁路距离')],
               visible: true,
               initValue: '',
          },
          {
               field: 'hdsource',
               type: 'input',
               label: '隐患来源',
               placeHolder: '请输入隐患来源',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入隐患来源')],
               visible: true,
               initValue: '',
          },
          {
               field: 'yhtype',
               type: 'select',
               label: '隐患类别 ',
               placeHolder: '请选择隐患类别',
               disabled: false,
               rules: [rule.cannotBeEmpty('请选择隐患类别')],
               options: [],
               visible: true,
               initValue: '',
          },
          {
               field: 'lfuser',
               type: 'input',
               label: '路方段长',
               placeHolder: '请输入路方段长',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入路方段长')],
               visible: true,
               initValue: '',
          },
          {
               field: 'dfuser',
               type: 'input',
               label: '地方段长',
               placeHolder: '请输入地方段长',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入地方段长')],
               visible: true,
               initValue: '',
          },
          {
               field: 'description',
               type: 'textarea',
               label: '隐患描述',
               placeHolder: '请输入隐患描述',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入隐患描述')],
               visible: true,
               initValue: '',
          },
          {
               field: 'measure',
               type: 'textarea',
               label: '整治措施',
               placeHolder: '请输入整治措施',
               disabled: false,
               rules: [rule.cannotBeEmpty('请输入整治措施')],
               visible: true,
               initValue: '',
          },
          {
               field: 'Xiaohaostatus',
               type: 'input',
               label: '销号状态',
               placeHolder: '请输入销号状态',
               disabled: false,
               rules: [],
               visible: false,
               initValue: '',
          },
          {
               field: 'Xiaohaotime',
               type: 'input',
               label: '销号时间',
               placeHolder: '请输入销号时间',
               disabled: false,
               rules: [],
               visible: false,
               initValue: '',
          },
          {
               field: 'explain',
               type: 'input',
               label: '销号说明',
               placeHolder: '请输入销号说明',
               disabled: false,
               rules: [],
               visible: false,
               initValue: '',
          },
     ],
     labelWidth: 'auto',
     colLayout: { span: 24 },
     itemStyle: { padding: 0 },
}
export const distributedModalConfig = {
     title: '批量派发',
     formItems: [
          {
               field: 'distributedStatus',
               type: 'select',
               label: '派发级别',
               placeHolder: '请选择派发级别',
               disabled: false,
               rules: [rule.cannotBeEmpty('请选择派发级别')],
               options: [
                    {
                         label: '省',
                         value: '省',
                    },
                    {
                         label: '市',
                         value: '市',
                    },
                    {
                         label: '县',
                         value: '县',
                    },
                    {
                         label: '乡',
                         value: '乡',
                    },
               ],
               visible: true,
               initValue: '',
          },
     ],
     labelWidth: 'auto',
     colLayout: { span: 24 },
     itemStyle: { padding: 0 },
}
